package streaming.func.model;

import org.apache.flink.table.functions.ScalarFunction;

public class HashCode extends ScalarFunction {

    private int factor = 13;

    public HashCode() {
        super();
    }

    public HashCode(int factor) {
        this.factor = factor;
    }

    public int eval(String id) {
        return id.hashCode() * 13;
    }

}
